package com.wzl.common.method;

import com.wzl.common.config.VKConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 引用此包初始化方法
 *
 * @author weizhongli
 * @since 1.0, 2023/06/07 18:57
 */
@Component
@Slf4j
public class VKInitialization {

    @Resource
    private VKConfig vkConfig;

    @PostConstruct
    public void initMethod(){
        int id = vkConfig.getId();
        int age = vkConfig.getAge();
        String name = vkConfig.getName();
        log.info("common包初始化完成，id:{},age:{},name:{}",id,age,name);
    }

}